package com.privasphere.wikidoclet.dataTransport;


/**
 * 
 * Class that encapsulates a page record read from the XML-File generated
 * with the help of the WikiDoclet class. Within the XML-File there are
 * several page records...
 * 
 * @author Christian Dubs
 *
 */
public class WikiDocPageData {
	
	private String titleValue;
	private StringBuilder contentValue;
	private String hashValue;
	private String timeValue;
	
	/**
	 * Method to return the title value of a current page record.
	 * @return titleValue - the title of the current page record.
	 */
	public String getTitleValue() {
		return titleValue;
	}
	
	/**
	 * Method to set the title value of a certain page record.
	 * @param titleValue
	 */
	public void setTitleValue(String titleValue) {
		this.titleValue = titleValue;
	}
	
	/**
	 * Method to get the value of the content. The content is basically wiki syntax 
	 * stored in a string. 
	 * @return contentValue - the content of the current page record.
	 */
	public String getContentValue() {
		//LOGGER.trace("Content=" + contentValue.toString());
		return contentValue.toString();
	}
	
	/**
	 * Method to set the content value of a current page record.
	 * @param contentValue
	 */
	public void setContentValue(StringBuilder contentValue) {
		if(this.contentValue==null) {
			this.contentValue = new StringBuilder(1500);
		}
		this.contentValue.append(contentValue);
	}
	
	/**
	 * Method to get the hash value of a current page record.
	 * @return hashValue - the hash value of the current page record.
	 */
	public String getHashValue() {
		return hashValue;
	}
	
	/**
	 * Method to set the hash value of a current page record.
	 * @param hashValue
	 */
	public void setHashValue(String hashValue) {
		this.hashValue = hashValue;
	}
	
	/**
	 * Method to get the time value of a current page record.
	 * @return timeValue - the time value of the current page record.
	 */
	public String getTimeValue() {
		return timeValue;
	}
	
	/**
	 * Method to set the time value of a current page record.
	 * @param timeValue
	 */
	public void setTimeValue(String timeValue) {
		this.timeValue = timeValue;
	}
}
